package com.xebest.web.mapper.write;

import com.xebest.web.form.XeVenAfterSaleCheckForm;
import com.xebest.web.form.XeVenAfterSaleDelForm;
import com.xebest.web.model.XeVenAfterSaleEntity;

/**
 * 售后单相关WriterMapper
 *
 * @author chenjing
 */
public interface XeVenAfterSaleWriterMapper {
    /**
     * 根据售后单编号删除售后单
     *
     * @author chenjing
     */
    int deleteByAfterSalesCode(String afterSaleCode);

    /**
     * 插入售后单信息
     *
     * @author chenjing
     */
    int insert(XeVenAfterSaleEntity record);

    /**
     * 根据售后单编号更新售后单信息
     *
     * @author chenjing
     */
    int updateByPrimaryKey(XeVenAfterSaleEntity record);

    /**
     * 批量审核售后单
     *
     * @author chenjing
     */
    int batchAfterSalesList(XeVenAfterSaleCheckForm form);

    /**
     * 批量删除售后单
     *
     * @author chenjing
     */
    int delAfterSaleList(XeVenAfterSaleDelForm form);

    /**
     * 批量作废售后单
     *
     * @author chenjing
     */
    int cancelAfterSaleList(XeVenAfterSaleDelForm form);
}